import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)
// const SignUpTable = resolve => {
//     require.ensure(['../Pages/SignUpTable.vue'], () => {
//         resolve(require('../Pages/SignUpTable.vue'))
//     })
// }
const sportTable = resolve => {
    require.ensure(['../Pages/sportTable.vue'], () => {
        resolve(require('../Pages/sportTable.vue'))
    })
}
const shufflingManage = resolve => {
    require.ensure(['../Pages/shufflingManage.vue'], () => {
        resolve(require('../Pages/shufflingManage.vue'))
    })
}

// let routes = [
//     {
//         path: '/',
//         redirect: '/SignUpTable',
//     },
//     {
//         path: '/SignUpTable',
//         name: 'SignUpTable',
//         component: SignUpTable,
//     }
// ]
let routes = [
    {
        path: '/',
        redirect: '/sportTable',
    },
    {
        path: '/sportTable',
        name: 'sportTable',
        component: sportTable,
    },
    {
        path: '/shufflingManage',
        name: 'shufflingManage',
        component: shufflingManage,
    }
]

export default new Router({
    routes,
})
